<h1>Listing yonghus</h1>

<table>
  <tr>
    <th>Xingming</th>
    <th>Username</th>
    <th>Password</th>
    <th>Xingbie</th>
    <th>Shengri</th>
    <th>Tel</th>
    <th>Dizhi</th>
    <th>Email</th>
    <th>Tuijianid</th>
    <th>Vipid</th>
    <th>Youbian</th>
  </tr>

<% @yonghus.each do |yonghu| %>
  <tr>
    <td><%=h yonghu.xingming %></td>
    <td><%=h yonghu.username %></td>
    <td><%=h yonghu.password %></td>
    <td><%=h yonghu.xingbie %></td>
    <td><%=h yonghu.shengri %></td>
    <td><%=h yonghu.tel %></td>
    <td><%=h yonghu.dizhi %></td>
    <td><%=h yonghu.email %></td>
    <td><%=h yonghu.tuijianid %></td>
    <td><%=h yonghu.vipid %></td>
    <td><%=h yonghu.youbian %></td>
    <td><%= link_to 'Show', yonghu %></td>
    <td><%= link_to 'Edit', edit_yonghu_path(yonghu) %></td>
    <td><%= link_to 'Destroy', yonghu, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New yonghu', new_yonghu_path %>